package com.monkeyk.sos.web.controller.server.mobile;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.monkeyk.sos.domain.dto.UserJsonDto;
import com.monkeyk.sos.service.UserService;
import com.monkeyk.sos.web.controller.BaseController;
/**
 * 
* @ClassName: MobileController 
* @Description: 移动应用控制层 
* @author cygaod 
* @date 2015年12月10日 下午4:55:12 
* @version 1.0
 */
@Controller
@RequestMapping("/m")
public class MobileSController extends BaseController {
    @Autowired
    private UserService userService;
    

    @RequestMapping("/dashboard")
    public String dashboard() {
        return "mobile/dashboard";
    }
    
    @RequestMapping("user_info")
    @ResponseBody
    public UserJsonDto userInfo() throws Exception {
        return userService.loadCurrentUserJsonDto();
    }
}